package com.xishu.entity.plat;

import com.xishu.entity.AbstractEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import javax.persistence.Transient;

@Api(description = "账号与分店的映射关系")
@Entity(name = "user_shop_mapping")
@Table(indexes = {@Index(columnList = "userId"), @Index(columnList = "shopId")})
public class UserShopMapping extends AbstractEntity {
    @ApiModelProperty(value = "账号名称")
    private String userName;

    @ApiModelProperty(value = "账号ID")
    private Long userId;

    @ApiModelProperty(value = "分店名称")
    private String shopName;

    @ApiModelProperty(value = "分店ID")
    private Long shopId;

    @ApiModelProperty(value = "是添加绑定还是解除绑定")
    @Transient
    private Boolean binding;

    @ApiModelProperty(value = "分店名称")
    @Transient
    private String shopName_en;

    @ApiModelProperty(value = "分店名称")
    @Transient
    private String shopName_zh;

    public String getShopName_en() {
        return shopName_en;
    }

    public void setShopName_en(String shopName_en) {
        this.shopName_en = shopName_en;
    }

    public String getShopName_zh() {
        return shopName_zh;
    }

    public void setShopName_zh(String shopName_zh) {
        this.shopName_zh = shopName_zh;
    }

    public Boolean getBinding() {
        return binding;
    }

    public void setBinding(Boolean binding) {
        this.binding = binding;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }
}
